package com.hu.system.domain;

import java.math.BigDecimal;

/**
 * 采购统计数据对象
 *
 * @author hu
 * @date 2025-01-30
 */
public class PurchaseStatistics {
    /**
     * 总计采购金额
     */
    private BigDecimal totalAmount;

    /**
     * 总计采购数量
     */
    private Long totalQuantity;

    /**
     * 采购记录数
     */
    private Long totalRecords;

    /**
     * 平均单价
     */
    private BigDecimal avgUnitPrice;

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Long getTotalQuantity() {
        return totalQuantity;
    }

    public void setTotalQuantity(Long totalQuantity) {
        this.totalQuantity = totalQuantity;
    }

    public Long getTotalRecords() {
        return totalRecords;
    }

    public void setTotalRecords(Long totalRecords) {
        this.totalRecords = totalRecords;
    }

    public BigDecimal getAvgUnitPrice() {
        return avgUnitPrice;
    }

    public void setAvgUnitPrice(BigDecimal avgUnitPrice) {
        this.avgUnitPrice = avgUnitPrice;
    }

    @Override
    public String toString() {
        return "PurchaseStatistics{" +
                "totalAmount=" + totalAmount +
                ", totalQuantity=" + totalQuantity +
                ", totalRecords=" + totalRecords +
                ", avgUnitPrice=" + avgUnitPrice +
                '}';
    }
}

